package model

type Broker struct {
	Id       int64  `json:"id"`
	Name     string `json:"name"`
	Desc     string `json:"desc,omitempty"`
	Port     int    `json:"port,omitempty"` //TODO 添加TLS证书
	Disabled bool   `json:"disabled,omitempty"`
	Created  Time   `json:"created,omitempty" xorm:"created"`
}

type BrokerHistory struct {
	Id       int64  `json:"id"`
	BrokerId int64  `json:"broker_id" xorm:"index"`
	Event    string `json:"event"`
	Created  Time   `json:"created,omitempty" xorm:"created"`
}
